'use strict';

module.exports = app => {
  const { model } = app;
  const { UUID } = app.Sequelize;

  const PermissionMenu = model.define(
    'PermissionMenu',
    {
      permission_id: {
        type: UUID,
      },
      menu_id: {
        type: UUID,
      },
    },
    {
      tableName: 'sys_permission_menu',
      timestamps: false,
    }
  );

  PermissionMenu.removeAttribute('id');
  // PermissionMenu.removeAttribute('created_at');
  // PermissionMenu.removeAttribute('updated_at');

  return PermissionMenu;
};
